home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Suzy B Software 2
/
Suzy B Software CD-ROM 2 (1994).iso
/
extras
/
programm
/
gemfsc19
/
gemfsc19.lzh
/
GEMFBIND
/
VMCOORDS.S
< prev
next >
Wrap
Text File
|
1993-03-25
|
1KB
|
43 lines
;*========================================================================
;* VDIFAST Public Domain VDI bindings.
;*========================================================================
;*-----------------------------------------------------------------------
;*
;*-----------------------------------------------------------------------
globl _vm_coords
_vm_coords:
; .cargs #8,handle.w,llx.w,lly.w,urx.w,ury.w
handle = 8
llx = 10
lly = 12
urx = 14
ury = 16
link a6,#-2
; VContrl #5,99,,#5
move.w handle(a6),-(sp) ; contrl[6]
move.w #99,-(sp) ; contrl[5]
subq.l #2,sp ; contrl[4]
move.w #5,-(sp) ; contrl[3]
subq.l #2,sp ; contrl[2]
clr.w -(sp) ; contrl[1]
move.w #5,-(sp) ; contrl[0]
move.w #1,handle(a6) ; first intin word must be one; it
; replaces handle in stacked parms.
subq.l #4,sp ;* -> ptsout
pea -2(a6) ;* -> intout
subq.l #4,sp ;* -> ptsin
pea handle(a6) ;* -> intin
pea 16(sp) ;* -> contrl
jmp vdicall
end